//获取Post参数
const express = require("express");
const bodyParser = require("body-parser");

var app = express();


// 解析application/json数据
var jsonParser = bodyParser.json();
// 解析application/x-www-form-urlencoded数据
var urlencodedParser = bodyParser.urlencoded({ extended: false });



app.post('/', urlencodedParser, function (req, res) {
    res.send(req.body);
});

app.listen(8080, () => { console.log("成功启动") });

